package com.lzj.controller;

import com.lzj.entity.Employee;
import com.lzj.entity.Meeting;
import com.lzj.service.MeetingService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;
import java.util.Date;

/**
 * <p>
 *测试tomcat是否能够正常运行，测试环境是否正常
 * </p>
 *
 * @autor:lzj
 * @date:2022/2/26
 */
@RestController
public class TestController {
    @Autowired
    MeetingService meetingService;


//    @Test
//    public void doAddMeeting(){
//        int id=10;
//        int[] mps={1, 2, 3, 4};
//        for (int mp : mps) {
//            System.out.println("员工id"+mp);
//        }
//        System.out.println(meetingService.addParticipants(id,mps));
//    }
    @RequestMapping("/hello")
    public String test1(){
        return "hello";
    }

}
